#ifndef _BOARD_CONFIG_H_
#define _BOARD_CONFIG_H_

#include <driver/gpio.h>
#include <driver/spi_master.h>

#define DISPLAY_WIDTH       160
#define DISPLAY_HEIGHT      80
#define DISPLAY_MIRROR_X    false
#define DISPLAY_MIRROR_Y    false
#define DISPLAY_SWAP_XY     false

#define QSPI_LCD_H_RES           (160)
#define QSPI_LCD_V_RES           (80)
#define QSPI_LCD_BIT_PER_PIXEL   (16)

#define QSPI_LCD_HOST           SPI2_HOST
#define QSPI_PIN_NUM_LCD_PCLK   GPIO_NUM_12
#define QSPI_PIN_NUM_LCD_CS     GPIO_NUM_39
#define QSPI_PIN_NUM_LCD_MOSI   GPIO_NUM_11
#define QSPI_PIN_NUM_LCD_RST    GPIO_NUM_38
#define QSPI_PIN_NUM_LCD_BL     GPIO_NUM_41  // 背景亮度
#define BUTTON_PIN_NUM GPIO_NUM_0 //按钮

#define DISPLAY_OFFSET_X  0
#define DISPLAY_OFFSET_Y  0

#define DISPLAY_BACKLIGHT_PIN           QSPI_PIN_NUM_LCD_BL
#define DISPLAY_BACKLIGHT_OUTPUT_INVERT false

#define LED_PIN GPIO_NUM_1

#endif // _BOARD_CONFIG_H_
